<?php

if (isset($_COOKIE["agent_id"]))
    $agent_id= $_COOKIE["agent_id"];
else{
    echo "<script type=text/javascript>window.location.href='../Admin/Login.php';</script>";
}